from fastapi import APIRouter, Depends

from app.api.h5.schema.client.client import LoginInSchema
from app.api.h5.service.client.client import ClientService
from app.utils.res import unified_resp


client = APIRouter(prefix="/client")


@client.post("/login")
@unified_resp
async def login(login_in: LoginInSchema, client_service: ClientService = Depends(ClientService.instance)):
    return await client_service.login(login_in)
